CREATE PROCEDURE [dbo].[AprobarPrematricula]
	@id_HorarioPreMatricula INT,
	@id_estudiante INT
AS
BEGIN
	update HorarioPreMatricula
	SET estatus = 'Historial'
	WHERE fk_Estudiante = @id_estudiante
	
	UPDATE HorarioPreMatricula
	SET estatus='Activo'
	WHERE id_HorarioPreMatricula=@id_HorarioPreMatricula
END;